package com.wangzh.nio.mytest;

import java.util.Arrays;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.stream.Collectors;

public class Test3 {
    public static void main(String[] args) {
        List<Integer> list = Arrays.asList(1, 2, 3);
        List<String> list1 = Arrays.asList("a", "b");
        Character[] characters = new Character[list.size()];
        Character[] array = list.toArray(characters);
        String.join("-",list1);
        list1.stream().collect(Collectors.joining("-"));
    }
}
